Anic Equity¶

Anic Equity¶

---------------------------------------------------------------------------
HTTPError                                 Traceback (most recent call last)
~\AppData\Local\Temp/ipykernel_11640/1335278011.py in <module>
      9     display(Markdown("# ***Anic Equity*** "))
---> 10     port, max_Equity, acc = get_current_portfolio()
     11     display(Markdown("## Updated:"), str(dt.now().date())+' '+str(dt.now().time()))

~\AppData\Local\Temp/ipykernel_11640/2092596468.py in get_current_portfolio()
    198     Max_dd = get_max_dd()
--> 199     acc = ava.get_account_overview(acc_id)
    200     Equity = acc['ownCapital']

~\Anaconda3\envs\AnicTrading\lib\site-packages\avanza\avanza.py in get_account_overview(self, account_id)
    270         """
--> 271         return self.__call(
    272             HttpMethod.GET,

~\Anaconda3\envs\AnicTrading\lib\site-packages\avanza\avanza.py in __call(self, method, path, options, return_content)
    137 
--> 138         response.raise_for_status()
    139 

~\Anaconda3\envs\AnicTrading\lib\site-packages\requests\models.py in raise_for_status(self)
    952         if http_error_msg:
--> 953             raise HTTPError(http_error_msg, response=self)
    954 

HTTPError: 500 Server Error: Server Error for url: https://www.avanza.se/_mobile/account/6422534/overview

During handling of the above exception, another exception occurred:

HTTPError                                 Traceback (most recent call last)
~\AppData\Local\Temp/ipykernel_11640/1335278011.py in <module>
     17     acc_id = get_accountId_by_name('Anic Investment')
     18     display(Markdown("# ***Anic Equity*** "))
---> 19     port, max_Equity, acc = get_current_portfolio()
     20     display(Markdown("## Updated:"), str(dt.now().date())+' '+str(dt.now().time()))
     21     Javascript("Jupyter.notebook.execute_cells([1])")

~\AppData\Local\Temp/ipykernel_11640/2092596468.py in get_current_portfolio()
    197     Max_equity = get_max_eq()
    198     Max_dd = get_max_dd()
--> 199     acc = ava.get_account_overview(acc_id)
    200     Equity = acc['ownCapital']
    201     display('#---------------------------------------------------------#')

~\Anaconda3\envs\AnicTrading\lib\site-packages\avanza\avanza.py in get_account_overview(self, account_id)
    269             }
    270         """
--> 271         return self.__call(
    272             HttpMethod.GET,
    273             Route.ACCOUNT_OVERVIEW_PATH.value.format(

~\Anaconda3\envs\AnicTrading\lib\site-packages\avanza\avanza.py in __call(self, method, path, options, return_content)
    136         )
    137 
--> 138         response.raise_for_status()
    139 
    140         # Some routes like add/remove instrument from a watchlist

~\Anaconda3\envs\AnicTrading\lib\site-packages\requests\models.py in raise_for_status(self)
    951 
    952         if http_error_msg:
--> 953             raise HTTPError(http_error_msg, response=self)
    954 
    955     def close(self):

HTTPError: 500 Server Error: Server Error for url: https://www.avanza.se/_mobile/account/6422534/overview

Anic Portfolio¶

Today¶

Return: -0.957 %¶

This Week¶

Return: -0.878 %¶

Total¶

Return: 55.478 %¶

Benchmark comparison TODAY¶

Benchmark comparison¶

OMXS30
DJUS
NDX
DAX
W1IDU

Excess return¶

OMXS30
DJUS
NDX
DAX
W1IDU

Anic Portfolio Holdings¶

  volume changePercent value profit profitPercent acquiredValue
name            
Beijer Electronics Group 26 1.340000 3135.600000 164.600000 5.540000 2971.000006
HEBA B 70 -0.630000 2772.000000 136.000000 5.160000 2636.000010
FM Mattsson Mora Group B 50 -3.230000 3000.000000 73.000000 2.490000 2927.000000
MedCap 2 1.320000 462.000000 41.000000 9.740000 421.000000
Corem Property Group B 59 -1.520000 613.010000 36.010000 6.240000 576.999999
Samhällsbyggnadsbo. i Norden B 20 -0.280000 389.800000 34.800000 9.800000 355.000000
SAAB B 8 0.020000 3408.000000 31.000000 0.920000 3377.000000
Resurs Holding 22 -1.300000 601.480000 27.480000 4.790000 573.999998
AcadeMedia 12 -3.750000 584.400000 27.400000 4.920000 557.000004
HMS Networks 2 -2.810000 690.800000 17.800000 2.640000 673.000000
Swedbank A 3 -0.320000 579.240000 15.240000 2.700000 564.000000
Boozt 12 -1.700000 1668.000000 14.000000 0.850000 1653.999996
Fastighetsbolag. Emilshus Pref 21 -0.180000 574.350000 12.350000 2.200000 562.000005
Securitas B 6 -1.160000 581.760000 11.760000 2.060000 570.000000
Eastnine 4 -0.790000 502.400000 11.400000 2.320000 491.000000
Nordea Bank Abp 29 0.240000 3462.600000 8.600000 0.250000 3453.999992
OEM International B 7 -1.170000 532.700000 4.700000 0.890000 527.999997
Coor Service Management Hold. 8 -1.030000 536.400000 4.400000 0.830000 532.000000
Karnov Group 9 -0.660000 539.100000 3.100000 0.580000 536.000004
Intrum 4 -2.930000 529.400000 2.400000 0.460000 527.000000
Norva24 Group 16 -3.790000 544.960000 1.960000 0.360000 543.000000
Samhällsbyggnadsbo. i Norden D 12 -1.050000 247.680000 1.680000 0.680000 246.000000
Creaspac SPAC 6 0.310000 577.200000 0.200000 0.030000 577.000002
Handelsbanken A 5 -1.370000 540.250000 -5.750000 -1.050000 546.000000
CTEK 13 0.230000 518.570000 -15.430000 -2.890000 533.999999
Essity B 2 -1.320000 553.200000 -20.800000 -3.620000 574.000000
Midsona B 63 -2.310000 560.700000 -22.300000 -3.830000 582.999984
Essity A 4 -1.950000 1108.000000 -41.000000 -3.570000 1149.000000
International Petroleum Corp. 5 -2.150000 546.000000 -48.570000 -8.170000 594.565215
Vivesto 1368 0.750000 551.300000 -61.700000 -10.070000 612.999432
Sampo Oyj SDB 7 -1.010000 3769.500000 -80.500000 -2.090000 3850.000000
Fasadgruppen Group 35 2.150000 3654.000000 -157.000000 -4.120000 3810.999990
Axfood 13 -0.250000 3573.700000 -182.300000 -4.850000 3756.000001
OX2 18 -3.170000 1402.200000 -261.800000 -15.730000 1663.999992
Ovzon 52 -2.720000 2787.200000 -574.800000 -17.100000 3361.999992
TOTAL 46097.500000 -791.070000 -2.33893% 46888.564618

Updated:¶

'2023-01-25 16:01:01.555341'
None

Last optimization/rebalancing:¶

'2023-01-02'

Next optimization/rebalancing:¶

'2023-02-10'

In or Out of market? In if Signal > -10, else out of market!¶

AVAN-Live vs backtest and OMXSE30 2023¶

Walk forward test results - depending on starting day¶

Equity is shown as log of returns. Returns range by a factor of 10. Best is about 10000%, 100 times money, and worst 1000%, 10 times money in 20 years. Maximal duration for drawdown periods vary between 280-750 days. Worst drawdown across the tests is about 40 %. ¶

Walk forward test results - Distribution of maximal drawdowns¶

Used to understand the strategys historical drawdown properties and to set the rule for when to stop trading the system. The stop limit is set to mean of max drawdown minus 2 standard deviations.¶